package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessPackageMapper;
import com.ruoyi.openDoor.domain.BusinessPackage;
import com.ruoyi.openDoor.service.IBusinessPackageService;

/**
 * 商家的包间的套餐Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessPackageServiceImpl implements IBusinessPackageService 
{
    @Autowired
    private BusinessPackageMapper businessPackageMapper;

    /**
     * 查询商家的包间的套餐
     * 
     * @param id 商家的包间的套餐主键
     * @return 商家的包间的套餐
     */
    @Override
    public BusinessPackage selectBusinessPackageById(Long id)
    {
        return businessPackageMapper.selectBusinessPackageById(id);
    }

    /**
     * 查询商家的包间的套餐列表
     * 
     * @param businessPackage 商家的包间的套餐
     * @return 商家的包间的套餐
     */
    @Override
    public List<BusinessPackage> selectBusinessPackageList(BusinessPackage businessPackage)
    {
        return businessPackageMapper.selectBusinessPackageList(businessPackage);
    }

    /**
     * 新增商家的包间的套餐
     * 
     * @param businessPackage 商家的包间的套餐
     * @return 结果
     */
    @Override
    public int insertBusinessPackage(BusinessPackage businessPackage)
    {
        return businessPackageMapper.insertBusinessPackage(businessPackage);
    }

    /**
     * 修改商家的包间的套餐
     * 
     * @param businessPackage 商家的包间的套餐
     * @return 结果
     */
    @Override
    public int updateBusinessPackage(BusinessPackage businessPackage)
    {
        return businessPackageMapper.updateBusinessPackage(businessPackage);
    }

    /**
     * 批量删除商家的包间的套餐
     * 
     * @param ids 需要删除的商家的包间的套餐主键
     * @return 结果
     */
    @Override
    public int deleteBusinessPackageByIds(Long[] ids)
    {
        return businessPackageMapper.deleteBusinessPackageByIds(ids);
    }

    /**
     * 删除商家的包间的套餐信息
     * 
     * @param id 商家的包间的套餐主键
     * @return 结果
     */
    @Override
    public int deleteBusinessPackageById(Long id)
    {
        return businessPackageMapper.deleteBusinessPackageById(id);
    }
}
